{include file="Public/head" title="我的配资-股票配资" keywords="股票配资" description="股票配资" /}

<div id="offCanvasWrapper" class="mui-off-canvas-wrap mui-draggable">
    <!-- 菜单容器 -->
    {include file="Public/header"}

    <div class="mui-inner-wrap">
        <div id="offCanvasContentScroll" class="mui-content mui-scroll-wrapper">
            <div class="mui-scroll" style="background-color: #fff;">
                <header class="tx_head">
                    <p>
                        <a href="javascript:history.go(-1)" class="header_p1"><span class="mui-icon mui-icon-arrowleft"></span></a>
                    <h5>我的配资</h5>
                    <a id="offCanvasBtn" href="#offCanvasSide" class="mui-icon mui-action-menu mui-icon-bars mui-pull-right" style="color:#fff;"></a>
                    </p>
                </header>

                <main>
                    {if condition="$xid eq 1"}
                        <!-- 续约 -->
                        <form action="{:url('Account/addxy',array('id'=>$id))}" onSubmit="return dataChecking(this)" method="post">
                            <article class="bdyhk_a">
                                <ul class="bdyhk_a_ul">
                                    <li>总操盘资金:　<span> <a class="price">{$rss['money2']}</a>元</span> </li>
                                    <li>亏损警戒线:　<span> {$rss['money3']}元</span> </li>
                                    <li>亏损平仓线:　<span> {$rss['money4']}元</span> </li>
                                    <li>初始风险保证金:　<span> {$rss['money1']}元</span> </li>
                                    <li>到期日期:　<span> {$newDay}</span> </li>
                                    {if condition="$rss['Tday'] gt 0"}
                                        <li>借款管理费:　<span> {$rss['money5']}元/每天</span><span><a style="color:red;margin-left: 5px;">按天配资自动续约{$Tday}</a></span> </li>
                                    {elseif condition="$rss['qixian'] gt 0" /}
                                        <!-- 按月 -->
                                        <li>借款月利率:　<span> {$site['mRebate12']}%/每月</span></li> 
                                    {/if}
                                    <li>续约/终止　
                                        {if condition="$rss['isWeek'] gt 0"}
                                            <select onchange="changeMoneyDay(this)" id="cycle" name="cycle" class="sel-b"
                                                    style="width:100px;border: 1px solid #999!important;">
                                                <option value="1">1周</option>
                                                <option value="2">2周</option>
                                                <option value="3">3周</option>
                                                <option value="4">4周</option>
                                            </select>
                                            <br/>
                                        {elseif condition="$rss['qixian'] gt 0" /}
                                            <select onchange="changeMoneyDay(this)" id="cycle" name="cycle" class="sel-b" style="width:100px;border: 1px solid #999!important;">
                                                <option value="1">1个月</option>
                                                <option value="2">2个月</option>
                                                <option value="3">3个月</option>
                                                <option value="4">4个月</option>
                                                <option value="5">5个月</option>
                                                <option value="6">6个月</option>
                                                <option value="0">终止交易</option>
                                            </select>
                                            <br/>
                                        {elseif condition="$rss['Tday'] gt 0" /} 
                                            <input type='number' name="cycle" id="cycle" value="" class="sel-b" style="width:100px;border:1px solid #999"><span>&nbsp;&nbsp;&nbsp;0表示终止交易</span><br>
                                        {/if}
                                    </li>
                                    <input onclick="" type="submit" value="提交" class="btn" style="width:200px;margin-left: 25%;margin-top: 20px;" />

                                </ul>
                            </article>
                        </form>
                    {/if}
                    {if condition="$xid eq 2"}
                  <!-- 追加保障金 -->
                        <form action="{:url('Account/addBaozhengjin',array('id'=>$id))}" onSubmit="return dataChecking(this)" method="post">
                            <article class="bdyhk_a">
                                <ul class="bdyhk_a_ul">
                                    <li>总操盘资金:　<span> <a class="price">{$rss['money2']}</a>元</span> </li>
                                    <li>亏损警戒线:　<span> {$rss['money3']}元</span> </li>
                                    <li>亏损平仓线:　<span> {$rss['money4']}元</span> </li>
                                    <li>初始风险保证金:　<span> {$rss['money1']}元</span> </li>
                                    <li>账户余额:　<span> {$rsUsers['money']}元</span> </li>
                                    <li>追加保证金金额:
                                        <input type='number' name="addMoney" id="addMoney" value="" class="sel-b" style="width:100px;border:1px solid #999">元 <br>
                                    </li>
                                    <input onclick="" type="submit" value="提交"  class="btn" style="width:200px;margin-left: 25%;margin-top: 20px;" />
                                </ul>
                            </article>
                        </form>
                    {/if}

                </main>




            </div>
        </div>
        <div class="mui-off-canvas-backdrop"></div>
    </div>
</div>
{include file="Public/footer"}
</body>

</html>